GDesktopAppInfo is not available on macOS and needs to be disabled
#mesondefine HAVE_TRACKER3
#mesondefine HAVE_F16C
+
+/* Does the OS support GDesktopAppInfo? */
+#mesondefine HAVE_DESKTOPAPPINFO
#include "gdkdisplay-x11.h"
#include <glib.h>
+#ifdef HAVE_DESKTOPAPPINFO
#include <gio/gdesktopappinfo.h>
+#endif
#include <string.h>
#include <unistd.h>
workspace_str = g_strdup_printf ("%d", ctx->workspace);
else
workspace_str = NULL;
-
+#ifdef HAVE_DESKTOPAPPINFO
if (G_IS_DESKTOP_APP_INFO (info))
application_id = g_desktop_app_info_get_filename (G_DESKTOP_APP_INFO (info));
else
+#endif
application_id = NULL;
startup_id = g_strdup_printf ("%s-%lu-%s-%s-%d_TIME%lu",
'sys/time.h',
'sys/types.h',
'unistd.h',
+ 'gio/gdesktopappinfo.h'
]
foreach h : check_headers